/*
 * @description:
 * @Author: Peng_Yong
 * @Date: 2023-08-18 13:12:36
 * @LastEditors: James324
 * @LastEditTime: 2023-11-18 09:41:30
 */
import type {
    FormProps,
    FormItemProps,
    InputNumberProps,
    InputProps,
    DatePickerProps,
    TimePickerDefaultProps,
    ISelectProps
} from 'element-plus';
export interface SearchConfig {
    itemData: {
        itemType?: 'number' | 'date' | 'select' | 'text' | 'time';
        inputConfig: {
            modelKey: string;
            option?: any[];
            optionLabelKey?: string;
            optionValueKey?: string;
            slotName?: string;
            [key: string]: any;
            inputProps?: Partial<InputNumberProps> &
                Partial<InputProps> &
                Partial<DatePickerProps> &
                Partial<TimePickerDefaultProps> &
                Partial<ISelectProps>;
        };
        // formItem的配置 同 element plus form-item
        itemProps?: Partial<FormItemProps>;
    }[];
    // form表单的配置同 element plus form
    formProps?: Partial<FormProps>;
}

export type LabelFn = (form: any) => string;
